import { getQueryParams } from '@/utils';
import http from './http';

export default {
  /**
   * @description: 查询商家信息
   * @param {type}
   * @return:
   */
  getMerchantInfo(data) {
    return http.get(`/mall/web/customer/v1/merchant/${data}`).exec();
  },

  /**
   * @description: 新增商户信息
   * @param {type}
   * @return:
   */
  addMerchantInfo(data) {
    return http.post(`/mall/web/customer/v1/merchants`, data).exec();
  },
  /**
   * @description: 修改商家
   * @param {type}
   * @return:
   */
  setMerchantInfo(data) {
    return http.post(`/mall/web/customer/v1/merchant`, data).exec();
  },
};
